<!DOCTYPE html>
<html lang="zh">
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0"/>

	<title>家校互动系统</title>
	<link rel="shortcut icon" href="favicon.ico" />
	 <link href="__TMPL__css/bootstrap.min.css" rel="stylesheet" type="text/css" />
	<link href="__TMPL__css/m.css" rel="stylesheet" type="text/css" />
	<script src="__TMPL__js/jquery.min.js"></script>
	<script src="__TMPL__js/iscroll.js"></script>
	<script src="__TMPL__js/m.js"></script>
    <link rel="stylesheet" type="text/css" href="__TMPL__js/jqueryui/jquery-ui.css" />
<script type="text/javascript" src="__TMPL__js/jqueryui/jquery-ui.js"></script>
<script type="text/javascript" src="__TMPL__js/jqueryui/jquery-ui-slide.min.js"></script>
<script type="text/javascript" src="__TMPL__js/jqueryui/jquery-ui-timepicker-addon.js"></script>
    <script>
	$(document).ready(function(e) {
			$('.inputdate').datetimepicker({timeFormat:''});
    });
	</script>
	<!--[if lt IE 9]>
	<script src="js/html5.js"></script>
	<![endif]-->
</head> 
<body><!-- 背景可后台替换 -->

<div class="wrap ui-page  ui-body-c ui-page-active webwidth">
	
        			<if condition="$f eq '1'">

    
    <div class="ui-header">
		<a href="javascript:history.go(-1);" id="icoback" class="header-btn left-pos">返回</a>
		<h1 class="ui-title">考勤情况</h1>
	</div>
    
    </if>
    
    
	<div class="ui-nav" <if condition="$f eq '1'">style="margin-top:50px;"</if>>
		<div class="input-append text"  style="margin:10px;">
        <form method="post" action="__URL__/attence/type/parent/id/{$id}/f/{$f}">

         
         
         <select name="time" id="time" style="width:130px">
<option value="">选择日期</option>
<volist name="datelist" id="vo">
<option value="{$vo}" >{$vo}</option>
</volist>
</select>
         <select name="student_id" id="student_id" style="width:100px">
<option value="">选择孩子</option>
<volist name="studentlist" id="vo">
<option value="{$vo.id}">{$vo.XM}</option>
</volist>
</select>
         <button class="btn" type="submit">搜索</button>
         </form>
       </div>
	</div>
	<div id="wrapper" style="background:#FFF;top:<if condition="$f eq '1'">
100px;<else/>50px</if>"><!-- 有ui-nav存在时top:100px -->
		<div class="clear">
			<ul class="ui-listview">
            
<if condition="($lessonlist neq '')">
<volist name="lessonlist" id="vo">
				<li><a href="###">
					<div class="score">
						{$vo.type_name}
					</div>
					<div class="">
						<h3>{$vo.subject_name}</h3>
						<p>{$vo.student_id|getinfo=###,'student','XM'}  {$vo.FBSJ|date='Y-m-d',###}</p>
					</div>
                    <if condition="$vo.status eq '0'">
                            <span class="status green">未到</span>
                            <else />
                            <span class="status red">已到</span>
                            </if>
					{$vo.id|loadattence=###,$time,$student_id,$class_id,$week}
					
                    </a>
				</li>
		
</volist>
</if>		
			</ul>
		</div>
	</div><!-- /wrapper -->
</div>

		<script type="text/javascript">
			//js模拟滚动条
			var myScroll;
			function loaded() {
				var myscroll=new iScroll("wrapper",{hScrollbar:true, vScrollbar:true});
			}

			document.addEventListener('touchmove', function (e) { e.preventDefault(); }, false);
			document.addEventListener('DOMContentLoaded', loaded, false);
		</script>

</body>
</html>